<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <base href="<%=request.getContextPath()%>/">
    <title>登录</title>
    <link href="app/resources/css/bootstrap.min.css" rel="stylesheet">
    <link href="app/resources/css/font-awesome.min.css" rel="stylesheet">
    <link href="app/resources/css/animate.min.css" rel="stylesheet">
    <link href="app/resources/css/style.min.css" rel="stylesheet">
    <link href="app/resources/css/login.min.css" rel="stylesheet">
    <script>
        if (window.top !== window.self) {
            window.top.location = window.location
        }
    </script>
</head>
<body class="signin">
<div class="signinpanel">
    <div class="row">
        <div class="col-sm-7">
            <div class="signin-info">
                <div class="logopanel m-b">
                    <h1></h1>
                </div>
                <div class="m-b"></div>
                <h3>欢迎使用 </h3>
                <h1><strong>欢迎使用</strong></h1>
                <ul class="m-b">
                    <li><i class="fa fa-arrow-circle-o-right m-r-xs"></i></li>

                </ul>

            </div>
        </div>
        <div class="col-sm-5">
            <form method="post" action="login" id="loginForm">
                <h4 class="no-margins">登录：</h4>
                <p class="m-t-md">登录到xx管理系统</p>
                <input type="hidden" name="vs" value="-1"/>
                <input type="text" class="form-control uname" name="username" placeholder="用户名" value="${username}"/>
                <input type="password" class="form-control pword m-b" name="password" placeholder="密码"
                       value="${password}"/>
                <div style="color: red">${msg}</div>
                <a class="btn btn-success btn-block" id="loginBtn">登录</a>
            </form>
        </div>
    </div>
    <div class="signup-footer">
        <div class="pull-left">
            &copy;
        </div>
    </div>
</div>
</body>
<script>
    var loginBtn = document.getElementById("loginBtn")
    var loginForm = document.getElementById("loginForm")
    loginBtn.onclick = function (ev) {
        loginForm.submit()
    };

    document.onkeydown = function (e) {
        var theEvent = window.event || e;
        var code = theEvent.keyCode || theEvent.which || theEvent.charCode;
        if (code === 13) {
            loginBtn.click()
        }
    };

</script>
</html>
